import Taro from "@tarojs/taro";
import { View } from "@tarojs/components";
import "./index.scss";
import IconFont from "../iconfont";
interface IProps {
  size: number;
  fontSize: number;
  name: any;
  title?: string;
}

export const IconBox = (props: IProps) => {
  return (
    <View className="icon-box">
      <IconFont name={props.name} size={props.size} />
      <View
        className="title"
        style={{
          fontSize: `${props.fontSize}px`
        }}
      >
        {props.title}
      </View>
    </View>
  );
};
